<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
	<base href="<%=basePath%>"><!-- jsp文件头和头部 -->
	<%@ include file="../../system/main/main_top.jsp"%> 
	
    <link rel="stylesheet" media="screen" type="text/css" href="static/select2-js/select2.css" />
    <style media="print" type="text/css">
		.Noprint 
		{
			display: none;
		}
	</style>
	</head>
<body>
<div id="centerOfMainFrame">
		<div class="page-content">
			<!-- 检索  -->
			<input type="hidden" name="organ_id" id="organ_id" value="${pd.organ_id }"/>
			<input type="hidden" name="create_date" id="create_date" value="${pd.create_date }"/>
			<!-- 检索  -->
			<table id="table_report" class="table table-striped table-bordered table-hover" style="margin-top: 10px;">
				<thead>
					<tr>
						<th>订单编号</th>
						<th>支付单号</th>
						<th>用户手机</th>
						<th>所属活动</th>
						<th>支付方式</th>
						<th>银行类型</th>
						<th>支付金额</th>
						<th>支付时间</th>
					</tr>
				</thead>
										
				<tbody>
					
				<!-- 开始循环 -->	
				<c:choose>
					<c:when test="${not empty varList}">
						<c:forEach items="${varList}" var="var" varStatus="vs">
							<tr>
									<td>${var.out_trade_no}</td>
									<td>${var.the_third_no}</td>
									<td>${var.act_promotor_mobile}</td>
									<td>${var.act_id}</td>
									<td>
										<c:if test="${var.pay_method == '1' }">苹果支付</c:if>
										<c:if test="${var.pay_method == '2' }">支付宝支付</c:if>
										<c:if test="${var.pay_method == '3' }">微信APP支付</c:if>
										<c:if test="${var.pay_method == '7' }">微信公众号支付</c:if>
									</td>
									<td>${var.bank_type}</td>
									<td><fmt:formatNumber type="number" value="${var.total_fee == null ? '0.00' : var.total_fee} " maxFractionDigits="2"/></td>
									<td><fmt:formatDate value="${var.create_time}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							</tr>
						</c:forEach>
						<!-- 
						<tr>
							<td colspan="100" class="center">您无权查看</td>
						</tr>
						 -->
					</c:when>
					<c:otherwise>
						<tr class="main_info">
							<td colspan="100" class="center" >没有相关数据</td>
						</tr>
					</c:otherwise>
				</c:choose>
				</tbody>
			</table>
	</div>
 	<div class="center">
		<a class="btn btn-primary Noprint" onclick="window.print()">打印</a>
	</div>
	<!-- PAGE CONTENT ENDS HERE -->
  </div><!--/row-->
  <div id="centerOfMainFrame2" class="center" style="display: none">
		<br />
		<br />
		<br />
		<img src="static/images/jzx.gif" style="width: 50px;" /><br />
		<h4 class="lighter block green"></h4>
	</div>
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script type="text/javascript" src="static/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="static/js/ace-elements.min.js"></script>
		<script type="text/javascript" src="static/js/ace.min.js"></script>
		<!-- 引入 -->
		
		<script type="text/javascript">
		$(top.hangge());
		</script>
	</body>
</html>

